<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center publishExposure_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub publishExposure_fd0_0'>
					<view class='flex flex-wrap align-center publishExposure_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='publishExposure_fd0_0_c0_c0'>取消</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='publishExposure_fd0_0_c1_c0'>发曝光</text>
					</view>
					<view class='flex flex-wrap align-center justify-end publishExposure_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout publishExposure_flex_1">
				<view class='flex flex-direction flex-wrap align-stretch publishExposure_fd1_0'>
					<view class='flex flex-wrap publishExposure_fd1_0_c0'>
						<textarea class='flex publishExposure_input_fd1_0_c0' :placeholder="'请输入内容'" :maxlength="240"
							placeholder-style="color:rgba(153, 153, 153, 1);font-size:28rpx" v-model="content" />
					</view>
					<benben-images-upload ref="benbenImagesUploadfd1_0_c1" :maxlength="9" :img-ids.sync="photoids"
						:img-list.sync="photourl" :is-show-tips='true'>
						<template #content="{ num, maxlength, isShow, imgList }">
							<view class="flex flex-wrap align-start flex">
								<view v-for="(image, index) in imgList" :key="index"
									class='flex position-relative publishExposure_fd1_0_c10'>
									<text class='fu-iconfont2 position-absolute publishExposure_fd1_0_c100'
										@tap.stop="$refs.benbenImagesUploadfd1_0_c1.delImage(index)">&#xE8E7;</text>
									<image class='publishExposure_fd1_0_c101'
										@tap.stop="$refs.benbenImagesUploadfd1_0_c1.previewImage(index)"
										mode="aspectFill" :src='image'></image>
								</view>
								<image class='publishExposure_fd1_0_c11'
									@tap.stop="$refs.benbenImagesUploadfd1_0_c1.manyChooseImage()" v-if="isShow"
									mode="aspectFit" :src='STATIC_URL+"60.png"'></image>
							</view>
						</template>
					</benben-images-upload>
				</view>
				<view class='flex flex-wrap align-center justify-between publishExposure_fd1_1'>
					<text class='publishExposure_fd1_1_c0'>权限类型</text>
					<benben-select-diy ref="showSelectPopup1695717853030" class-name='flex flex' :items.sync="authority"
						v-model="jurisdiction" default-type="value" default-label="name" :allow-cancel='false' type="radio"
						:disabled='false'>
						<template v-for='(item,key0) in authority'>
							<view v-if="item.isSelected" class='flex align-center flex publishExposure_fd1_1_c1_c0'
								:key="key0" @tap="$refs.showSelectPopup1695717853030.tapHandle(key0)">
								<image class='publishExposure_fd1_1_c1_c0_c0' mode="aspectFit"
									:src='STATIC_URL+"8.png"'></image>
								<text class='publishExposure_fd1_1_c0'>{{item.name}}</text>
							</view>
							<view v-else class='flex align-center flex publishExposure_fd1_1_c1_c0' :key="key0"
								@tap="$refs.showSelectPopup1695717853030.tapHandle(key0)">
								<image class='publishExposure_fd1_1_c1_c0_c0' mode="aspectFit"
									:src='STATIC_URL+"6.png"'></image>
								<text class='publishExposure_fd1_1_c0'>{{item.name}}</text>
							</view>
						</template></benben-select-diy>
				</view>
				<button class='publishExposure_fd1_2' @click="fabuBaoguang">发布</button>
			</view>

			<!---flex布局flex布局结束-->


		</view>
	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				"fd1_0_c0": "",
				"authority": [{
					"name": "匿名",
					"value": "1",
					"image": ""
				}, {
					"name": "非匿名",
					"value": "2",
					"image": ""
				}],
				"jurisdiction": "",
				photoids: '',
				photourl: [],
				content:''
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {

		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			fabuBaoguang() {
				if (!this.content) {
					this.$message.info('请输入内容')
					return false
				}
				let arr = {
					content:this.content,
					photo:JSON.stringify(this.photourl),
					jurisdiction:this.jurisdiction
				}
				this.$api.post('/m6752/672203e1d521b',arr).then(res => {
					if (res.data.code == 1) {
						this.$message.info(res.data.msg)
						setTimeout(() => {
							uni.navigateTo({
								url: `/pages/mine/successPublish/successPublish?id=1`
							})
						})
					} else {
						this.$message.info(res.data.msg)
					}
				})
			},
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;
	}

	.publishExposure_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.publishExposure_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 36rpx;
	}

	.publishExposure_fd0_0_c0_c0 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 400;
		line-height: 30rpx;
	}

	.publishExposure_fd0_0_c0 {
		width: 120rpx;
	}

	.publishExposure_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.publishExposure_flex_1 {
		padding: 24rpx 24rpx 0rpx 24rpx;
	}

	.publishExposure_fd1_2 {
		background: #FC5F80;
		border-radius: 60rpx 60rpx 60rpx 60rpx;
		width: 638rpx;
		line-height: 88rpx;
		font-size: 32rpx;
		color: #fff;
		height: 88rpx;
		position: fixed;
		margin: 0rpx 0rpx 0rpx 32rpx;
		font-weight: 500;
		bottom: calc(40rpx + var(--window-bottom));
	}

	.publishExposure_fd1_1_c1_c0_c0 {
		width: 36rpx;
		height: 36rpx;
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		margin: 0rpx 16rpx 0rpx 0rpx;
	}

	.publishExposure_fd1_1_c1_c0 {
		margin: 0rpx 0rpx 0rpx 56rpx;
	}

	.publishExposure_fd1_1_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 400;
	}

	.publishExposure_fd1_1 {
		background: #FFFFFF;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		padding: 32rpx 24rpx 32rpx 24rpx;
	}

	.publishExposure_fd1_0_c11 {
		width: 210rpx;
		height: 210rpx;
		margin: 0rpx 6rpx 6rpx 0rpx;
		border-radius: 16rpx;
	}

	.publishExposure_fd1_0_c101 {
		width: 210rpx;
		height: 210rpx;
		border-radius: 16rpx;
	}

	.publishExposure_fd1_0_c100 {
		top: 0rpx;
		right: 0rpx;
		z-index: 10;
		color: rgba(242, 242, 242, 1);
		margin: 10rpx 10rpx 0rpx 0rpx;
		font-size: 46rpx;
	}

	.publishExposure_fd1_0_c10 {
		margin: 0rpx 6rpx 6rpx 0rpx;
		width: 210rpx;
		height: 210rpx;
		border-radius: 16rpx;
	}

	.publishExposure_input_fd1_0_c0 {
		width: 100%;
		height: 140rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #333;
		white-space: pre-wrap;
	}

	.publishExposure_fd1_0_c0 {
		background: #F8F8F8;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		padding: 24rpx;
		margin: 0rpx 0rpx 24rpx 0rpx;
	}

	.publishExposure_fd1_0 {
		background: var(--benbenbgColor1);
		margin: 0rpx 0rpx 32rpx 0rpx;
		padding: 32rpx 24rpx 32rpx 24rpx;
		border-radius: 16rpx;
		background-size: 100% auto;
	}
</style>